﻿using SuperSocket.SocketBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestFilterSocket
{
    public class HansAppServer : AppServer<HansAppSession, HansRequestInfo>
    {
        public static Encoding Encoder = Encoding.GetEncoding("gbk");

        public static string StartMark = "!Start";

        public static string EndMark = "$End";

        public HansAppServer() : base(new HansReceiveFilterFactory(HansAppServer.Encoder, HansAppServer.StartMark, HansAppServer.EndMark))
        {
        }

        public HansAppServer(Encoding encoder, string startMark, string endMark) : base(new HansReceiveFilterFactory(encoder, startMark, endMark))
        {
            HansAppServer.Encoder = encoder;
            HansAppServer.StartMark = startMark;
            HansAppServer.EndMark = endMark;
        }
    }
}
